<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/8
  Time: 17:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@include file="../../../base.jsp" %>
<div class="modal-header">
    <div class="cover" id="editTaskWindow">
        <div class="modal-dialog floatage">
            <div class="modal-content" id="floadtageCentent">
                <div class="text-center">
                    <div class="modal-header">
                        <button type="button" class="close" onclick="editTask.close()">x</button>
                        <h4 class="text-center text-primary">
                            编辑task
                        </h4>
                    </div>
                    <br>
                    <form id="editTaskForm" class="form-horizontal text-center">
                        <input class="hidden" value="${paperTask.taskId}" name="paperTask.taskId">
                        <input class="hidden" value="${paperId}" name="paperTask.paperId">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">task描述</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" rows="3" name="paperTask.descr"
                                          placeholder="">${paperTask.descr}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">状态</label>
                            <div class="col-sm-8">
                                <select class="form-control" name="paperTask.status">
                                    <option value="0" <c:if test="${paperCard.status == 0}"> selected</c:if> >默认（未发布）
                                    </option>
                                    <option value="50" <c:if test="${paperCard.status == 50}"> selected</c:if> >发布
                                    </option>
                                    <option value="99" <c:if test="${paperCard.status == 99}"> selected</c:if> >废除
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">操作</label>
                            <div class="col-sm-8">
                                <button type="button" class="btn btn-danger " onclick="editTask.save()">
                                    提交
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script src="${basePath}js/task_js/editTask.js"></script>
